import 'package:flutter/material.dart';

class ArcClipper extends CustomClipper<Path> {
  @override
  Path getClip(Size size) {
    var path = new Path();
    path.lineTo(0.0, size.height -30);
    var firstControlPoint = new Offset(size.width /4 ,size.height);
    var fistPoint = new Offset(size.width /2 ,size.height);
    path.quadraticBezierTo(firstControlPoint.dx, firstControlPoint.dy, fistPoint.dx, fistPoint.dy);

    var secondControlPoint = new Offset(size.width - (size.width /4),size.height);
    var secondPoint = new Offset(size.width,size.height -30);
    path.quadraticBezierTo(secondControlPoint.dx,secondControlPoint.dy, secondPoint.dx, secondPoint.dy);

    path.lineTo(size.width, 0.0);
    path.close();
    return path;
  }

  @override
  bool shouldReclip(covariant CustomClipper<Path> oldClipper) {
    return false;
  }
  
  
}